public class 二维数组基础 {
    public static void main(String[] args) {
        int sum=0;
        int[][] arr ={{1,1,1},{2,3,4,},{99,12,33}};
        for (int i = 0; i <arr.length ; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                sum+=arr[i][j];
                System.out.print(arr[i][j]+",");
            }
        }
        System.out.println(sum);
    }
}
